package linhz.demo07.Music;

import javafx.embed.swing.JFXPanel;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import sun.tools.jar.Main;
import java.io.File;


public class TestMusic{
    public static void main(String[] args) {
        File f = new File("C:\\Users\\ASUS2\\Downloads\\java-master\\HZLinLearnJava\\186947.mp3");

        System.out.println(f.getAbsolutePath());
        Media _midea = new Media(f.toURI().toString());
        final JFXPanel jfxPanel = new JFXPanel();
        MediaPlayer _mediaPlayer = new MediaPlayer(_midea);
        _mediaPlayer.play();
    }
}


